<?php
namespace App\Module\User\Controller;

use App\Common\Controller\AbstractController;
use App\Module\User\Service\ScoreService;
use Hyperf\Di\Annotation\Inject;

class ScoreController extends AbstractController{

    /**
     * @Inject()
     * @var ScoreService $scoreService
     */
    private $scoreService;
    public function search(){
        $pagesize = $this->request->input("pagesize");

        return $this->response->json($this->scoreService->search($pagesize));
    }
}